package org.gten.gegedexin.service;

import org.gten.gegedexin.Data.Mail;
import org.gten.gegedexin.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VerifyMail {
    @Autowired
    UserServiceImpl userService;

    public boolean verifyReceiver(String username){
//        读取数据库，判断mail的收件人是否存在
//        若存在，return true，否则return false
        return userService.isUserNameExist(username);
    }
}
